<?
require("config.php");

$location_status .= "| Delete";
$show_backnav = "subscription_menu";
$menuname = NULL;
$menutarget = NULL;

if (NULL!=$action){

	$Query = "DELETE FROM $table WHERE id=$id";
	myQuery($Query);

   header("location:" . $rela_path . "share/msg.php?v=343");

   exit();

}else{

  if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");

	exit();
  
  }

}


$Query = "SELECT 
code,
email,
name,
company,
address,
city,
country,
messages,
date 
FROM $table WHERE id=$id LIMIT 1";

$r=myQuery($Query);

$Code=$r[0][0];
$Email=$r[0][1];
$Name=$r[0][2];
$Company=$r[0][3];
$Address=$r[0][4];
$City=$r[0][5];
$Country=$r[0][6];
$Messages=$r[0][7];
$Date=$r[0][8];

require($rela_path . "inc/header.php");

?>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="delete">
<input name="Email" type="hidden" value="<?print($Email)?>">





<table width="95%" border="0" align="center">
  <tr> 
      <td valign="top"> <p><br>
          <br>
          Are you sure to delete this Subscriber ? 
          <input type="submit" class="button" name="Submit2" value="  Yes  ">
          <input type="button" class="button" name="Submit3" value="  No  " onClick="Redirect('subscription_menu.php',1);">
          <br>
          <br>

<table>

        <tr> 
          <td class="tdheader">Code :</td>
          <td><?print($Code)?></td>
        </tr>

          <tr> 
            <td class="tdheader">Name : </td>
            <td><?print($Name)?></td>
          </tr>

          <tr> 
            <td class="tdheader">Subscriber's Email : </td>
            <td><?print($Email)?></td>
          </tr>

          <tr> 
            <td class="tdheader">Subscription Date : </td>
            <td><?print(OutDate($Date))?></td>
          </tr>

        <tr> 
          <td class="tdheader">Company :</td>
          <td><?print($Company)?></td>
        </tr>

        <tr> 
          <td class="tdheader">Address :</td>
          <td><?print($Address)?></td>
        </tr>

        <tr> 
          <td class="tdheader">City :</td>
          <td><?print($City)?></td>
        </tr>

        <tr> 
          <td class="tdheader">Country :</td>
          <td><?print($Country)?></td>
        </tr>

        <tr> 
          <td class="tdheader">Messages :</td>
          <td><?print($Messages)?></td>
        </tr>


        </table>
        <p><br>
      </td>

  </tr>
</table>
<br>
<br>
<br>

</form>

<?
require($rela_path . "inc/footer.php");
?>
